require"classes"
math.randomseed(os.time())
for i=1,3 do
	math.random()
end
--print(math.random(1,10))

local turns = {'1', 3, '5', 6, 7}

	--init random function
	--look at: http://lua-users.org/wiki/MathLibraryTutorial ! :-\
	math.randomseed(os.time())
	for i=1,3 do
		math.random()
	end

	local rnd = math.random(1, #turns)
	print(turns[rnd])

Class{"Foo", t = Table}


f = Foo:create()
f.t = {'a','b'}

--a expected
print(f.t[1])

f.t[1] = 'x'

--x expected
print(f.t[1])

